package com.github.dengmin.mysql.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Author dengmin
 * @Created 2020/6/8 上午10:05
 */
@Controller
public class IndexController {
    private static final long serialVersionUID = 1L;

    @GetMapping("/login.html")
    public String loginPage(){
        return "login";
    }

    @GetMapping
    @ResponseBody
    public String logout(){
        return "ok";
    }

    @GetMapping("/ui.html")
    public String easyUI(){
        return "ui";
    }

    @GetMapping("/instances.html")
    public String dbInstance(){
        return "db_instance";
    }

}
